package com.dhh.web.modules.user.domain;

import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Set;

/**
 * @Auther: dhh
 * @Date: 2018/11/22 14:37
 * @Email: fzlinjianhui@163.com
 * @Description: 权限entity
 */
@Entity
@Table(name = "dhh_web_perms")
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Perms implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(length = 32)
    private String permId;

    @Column(unique = true,length = 50)
    private String name;

    @ManyToMany
    private Set<Role> roles;
}
